package com.happyclub.pojo;

import javax.persistence.*;
import java.util.Objects;

/**
 * @author 高欢
 * @description TODO
 * @date 2019/4/4
 */
@Entity
@Table(name = "TB_TOUR_TEAM", schema = "SCOTT", catalog = "")
public class TbTourTeam {
    private String id;
    private String teamId;
    private String leaderId;
    private String teamLogo;
    private String localtion;
    private String mainProject;
    private String intro;
    private String manifesto;
    private String principalName;
    private String principalTelphone;
    private String photoAlbumId;
    private String tourId;
    private String updateTime;
    private String createTime;
    private String teamName;

    @Id
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "TEAM_ID")
    public String getTeamId() {
        return teamId;
    }

    public void setTeamId(String teamId) {
        this.teamId = teamId;
    }

    @Basic
    @Column(name = "LEADER_ID")
    public String getLeaderId() {
        return leaderId;
    }

    public void setLeaderId(String leaderId) {
        this.leaderId = leaderId;
    }

    @Basic
    @Column(name = "TEAM_LOGO")
    public String getTeamLogo() {
        return teamLogo;
    }

    public void setTeamLogo(String teamLogo) {
        this.teamLogo = teamLogo;
    }

    @Basic
    @Column(name = "LOCALTION")
    public String getLocaltion() {
        return localtion;
    }

    public void setLocaltion(String localtion) {
        this.localtion = localtion;
    }

    @Basic
    @Column(name = "MAIN_PROJECT")
    public String getMainProject() {
        return mainProject;
    }

    public void setMainProject(String mainProject) {
        this.mainProject = mainProject;
    }

    @Basic
    @Column(name = "INTRO")
    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    @Basic
    @Column(name = "MANIFESTO")
    public String getManifesto() {
        return manifesto;
    }

    public void setManifesto(String manifesto) {
        this.manifesto = manifesto;
    }

    @Basic
    @Column(name = "PRINCIPAL_NAME")
    public String getPrincipalName() {
        return principalName;
    }

    public void setPrincipalName(String principalName) {
        this.principalName = principalName;
    }

    @Basic
    @Column(name = "PRINCIPAL_TELPHONE")
    public String getPrincipalTelphone() {
        return principalTelphone;
    }

    public void setPrincipalTelphone(String principalTelphone) {
        this.principalTelphone = principalTelphone;
    }

    @Basic
    @Column(name = "PHOTO_ALBUM_ID")
    public String getPhotoAlbumId() {
        return photoAlbumId;
    }

    public void setPhotoAlbumId(String photoAlbumId) {
        this.photoAlbumId = photoAlbumId;
    }

    @Basic
    @Column(name = "TOUR_ID")
    public String getTourId() {
        return tourId;
    }

    public void setTourId(String tourId) {
        this.tourId = tourId;
    }

    @Basic
    @Column(name = "UPDATE_TIME")
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "CREATE_TIME")
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "TEAM_NAME")
    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbTourTeam that = (TbTourTeam) o;
        return Objects.equals(id, that.id) &&
                Objects.equals(teamId, that.teamId) &&
                Objects.equals(leaderId, that.leaderId) &&
                Objects.equals(teamLogo, that.teamLogo) &&
                Objects.equals(localtion, that.localtion) &&
                Objects.equals(mainProject, that.mainProject) &&
                Objects.equals(intro, that.intro) &&
                Objects.equals(manifesto, that.manifesto) &&
                Objects.equals(principalName, that.principalName) &&
                Objects.equals(principalTelphone, that.principalTelphone) &&
                Objects.equals(photoAlbumId, that.photoAlbumId) &&
                Objects.equals(tourId, that.tourId) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(teamName, that.teamName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, teamId, leaderId, teamLogo, localtion, mainProject, intro, manifesto, principalName, principalTelphone, photoAlbumId, tourId, updateTime, createTime, teamName);
    }
}
